import ManagerIndex from '@/components/manager/index/ManagerIndex'
import UserList from '@/components/manager/user/UserList'
import UserEdit from '@/components/manager/user/UserEdit'
import actSystemList from '@/components/manager/systemManager/actSystemList'
import ActSystemEdit from '@/components/manager/systemManager/children/ActSystemEdit'
import Console from "@/components/manager/console/Console"

//设置总路由
var context = "/manager"

var userManagerRouter = [{
    path: context + '/index',
    name: 'ManagerIndex',
    component: ManagerIndex,
    meta: {
        login: false,
    }
}, {
    path: context + '/user/userEdit',
    name: 'UserEdit',
    component: UserEdit,
    meta: {
        login: false,
    }
}, {
    path: context + '/user/userList',
    name: 'UserList',
    component: UserList,
    meta: {
        login: false,
    }
}, {
    path: context + '/systemManager/actSystemList',
    name: 'actSystemList',
    component: actSystemList,
    meta: {
        login: false,
    }
},
{
    path: context + '/systemManager/actSystemList/edit',
    name: 'ActSystemEdit',
    component: ActSystemEdit,
    meta: {
        login: false,
    }
},
{
    path: context + '/console',
    name: 'Console',
    component: Console,
    meta: {
        login: false,
    }
},
]

export default {
    getRouter() {
        return userManagerRouter;
    }
}